<?php
return array(
	'status' => array(
		'ST_NONE' => '未上架',
		'ST_LISTING' => '已上架',
		'ST_DELISTING' => '已下架',
	),
	
	'rules' => array(
		'class' => 'DefaultRuleParser',
		'config' => array(
			'owner' => array(
				'ST_NONE' => array('listing'),
				'ST_DELISTING' => array('listing'),
				'ST_LISTING' => array('delisting'),
			),
			AdminUser::ROLE_OPERATOR => array(
				'ST_NONE' => array('listing'),
				'ST_DELISTING' => array('listing'),
				'ST_LISTING' => array('delisting'),
			),
		),
		'roleDefines' => array(
			'owner' => 'Yii::app()->adminUser->id == $data->dealer_id',
		),
	),
	
	'_import' => array(
		array('rules.roleDefines.*', 'status.common//rules.roleDefines.*'),
	),
	
);